<%--
    Document   : certificados
    Created on : 07/01/2010, 11:42:33 AM
    Author     : christian
--%>

<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<link href="/general/css/admin_1.css" rel="stylesheet" type="text/css"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <t:div>
        <h:form>
            <h:inputHidden value="#{tramiteController.inicio}"/>

            <h:panelGrid columns="1" styleClass="rayaForms" width="100%">
                <h:outputLabel  value="CERTIFICADOS" />
            </h:panelGrid>
            <br>

            <rich:dataTable value="#{tramiteController.tramites}"
                            var="tramite" rows="15" reRender="ds" id="simpletable"
                            width="100%" columnsWidth="40%, 30%, 30%">
                <rich:column>
                    <f:facet name="header"> <h:outputLabel value="NOMBRE" /></f:facet>
                    <h:outputText value="#{tramite.trmNombre}" />
                </rich:column>
                <rich:column>
                    <f:facet name="header"> <h:outputLabel value="DESCRIPCION" /></f:facet>
                    <h:outputText value="#{tramite.trmDescripcion}" />
                </rich:column>
                <rich:column>
                    <f:facet name="header"> <h:outputLabel value="OPCIONES" /></f:facet>
                    <h:commandLink action="#{tramiteController.configurarCert}" value="Configurar" >
                        <f:setPropertyActionListener target="#{tramiteController.tramite}" value="#{tramite}" />
                    </h:commandLink>&nbsp;&nbsp;
                    <h:commandLink action="#{tramiteController.modificarCert}" value="Editar" >
                        <f:setPropertyActionListener target="#{tramiteController.tramite}" value="#{tramite}" />
                    </h:commandLink>
                </rich:column>
                <f:facet name="footer">
                    <rich:datascroller id="ds" renderIfSinglePage="false"></rich:datascroller>
                </f:facet>
            </rich:dataTable>
            <h:messages id="lblMessages" showDetail="true" errorStyle="color:red;" infoStyle="color:blue;"/>
        </h:form>
    </t:div>
</f:view>
